package com.cartoonrabbit.service;

import com.cartoonrabbit.pojo.EarlyAction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cartoonrabbit.vo.RespBean;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-17
 */
public interface IEarlyActionService extends IService<EarlyAction> {

    /**
     * 获取两次打卡活动信息
     * @param openId
     * @return
     */
    RespBean getTwoActions(String openId);

    RespBean doPrePay(Long money, String openId) throws Exception;

    RespBean doNotify(String orderId, Integer status, String openId);

    RespBean doClock(Integer actionId, String opennId);
}
